//
//  XCWSViewController.m
//  XCWSHistoryLib
//
//  Created by isoftstone on 10/10/2017.
//  Copyright (c) 2017 isoftstone. All rights reserved.
//

#import "XCWSViewController.h"
#import "CMCCIOTDGTrackViewController.h"
@interface XCWSViewController ()

@end

@implementation XCWSViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIButton* clickBtn = [[UIButton alloc] initWithFrame:CGRectMake(60, 300, 300, 100)];
    [clickBtn setTitle:@"测试" forState:UIControlStateNormal];
    [self.view addSubview:clickBtn];
    [clickBtn setBackgroundColor:[UIColor redColor]];
    
    [clickBtn addTarget:self action:@selector(clickBtnAction) forControlEvents:UIControlEventTouchUpInside];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)clickBtnAction{
    CMCCIOTDGTrackViewController* VC = [[CMCCIOTDGTrackViewController alloc] init];
    [self.navigationController pushViewController:VC animated:true];
}
@end
